
package com.jf.cloud.api.delivery.dto;

import com.jf.cloud.common.order.dto.DvyTypeDTO;
import com.jf.cloud.common.order.vo.ShopCartItemVO;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zz
 * @date 2020/12/15
 */
public class CalculateAndGetDeliverInfoDTO {

    @Schema(description = "地址ID，0为默认地址" )
    @NotNull(message = "地址不能为空")
    private Long addrId;

    @Schema(description = "用户选择的自提点id" )
    private Long stationId;

    @Schema(description = "购物项" )
    private List<ShopCartItemVO> shopCartItems;

    @Schema(description = "多店铺的商品配送方式" )
    private List<DvyTypeDTO> dvyTypes;

    public List<DvyTypeDTO> getDvyTypes() {
        return dvyTypes;
    }

    public void setDvyTypes(List<DvyTypeDTO> dvyTypes) {
        this.dvyTypes = dvyTypes;
    }

    public CalculateAndGetDeliverInfoDTO() {
    }

    public CalculateAndGetDeliverInfoDTO(Long addrId, Long stationId, List<ShopCartItemVO> shopCartItems, List<DvyTypeDTO> dvyTypes) {
        this.addrId = addrId;
        this.stationId = stationId;
        this.shopCartItems = shopCartItems;
        this.dvyTypes = dvyTypes;
    }

    public Long getAddrId() {
        return addrId;
    }

    public void setAddrId(Long addrId) {
        this.addrId = addrId;
    }


    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public List<ShopCartItemVO> getShopCartItems() {
        return shopCartItems;
    }

    public void setShopCartItems(List<ShopCartItemVO> shopCartItems) {
        this.shopCartItems = shopCartItems;
    }

    @Override
    public String toString() {
        return "CalculateAndGetDeliverInfoDTO{" +
                "addrId=" + addrId +
                ", stationId=" + stationId +
                ", shopCartItems=" + shopCartItems +
                '}';
    }
}
